import { Component, OnInit } from '@angular/core'
import { AppUiState } from './stores/app-ui-state'
import { autorun, trace } from 'mobx'

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.scss', ],
  providers: [ AppUiState, ]
})
export class AppComponent implements OnInit {
  title = 'app'

  constructor(public uiState: AppUiState) {
  }

  ngOnInit() {
    autorun(() => {
      trace()
      // console.log(this.uiState.windowDimensions)
    })
  }
}
